<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>个人中心</title>
	<link rel="stylesheet" type="text/css" href="css/person.css">
	<script type="text/javascript">
		function success(){
			var s = prompt("请输入新密码:","123");
			if (s!=null && s!="") {
				document.getElementById("pwd").innerHTML=s;
				alert("修改成功");
			}
			
		}
		function goback(){
			history.back();
		}
	</script>
</head>
<body>
	<div class="item-tag">
		<span>用户名：</span><span id="name">123</span><br>
		<span>密 码 ：</span><span id="pwd">123</span><br>
		<button id="chgPwd" onclick="success()">修改密码(通过弹窗修改)</button>
		<button id="chgPwd" onclick="goback()">返回</button>
	</div>

	
</body>
</html>